import React, { Component } from "react";
import { Button } from "antd";
// import styles from "./PurchaseBtn.module.css";

export default class PurchaseBtn extends Component {
  render() {
    const { children, fn, url, BtnClass } = this.props;
    return (
      <>
        <Button type="primary" onClick={fn} href={url}>
          {children}
        </Button>
      </>
    );
  }
}
